﻿using Model.BusinessModel.OutPut;
using Model.BusinessModel.OutPut.sys;
using Model.DomainModel.Sys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Infrastructure.IRepository.Sys
{
    /// <summary>
    /// 系统菜单仓储接口
    /// </summary>
    public interface ISysMenuRepository : IRepository<SysMenu>
    {
        /// <summary>
        /// 获取OverallAuth系统树形菜单
        /// </summary>
        /// <returns></returns>
        List<SysMenu> GetMenuTreeList();

        /// <summary>
        /// 获取菜单列表
        /// </summary>
        /// <returns></returns>
        List<SysMenuOutPut> GetAllMenuTreeList();

        /// <summary>
        /// 获取公司下系统的菜单
        /// </summary>
        /// <param name="corporationKey">公司key</param>
        /// <param name="systemKey">系统key</param>
        /// <returns></returns>
        List<TreeOutPut> GetCorporationSystemMenuList(string corporationKey, string systemKey);

        /// <summary>
        /// 获取公司、系统、菜单数据 
        /// </summary>
        /// <param name="corporationKey">公司key</param>
        /// <param name="systemKey">系统key</param>
        /// <returns></returns>
        public List<TreeOutPut> GetCorporationSystemMenuData(string corporationKey, string systemKey);

        /// <summary>
        /// 根据菜单id获取菜单
        /// </summary>
        /// <param name="menuId">菜单id集合</param>
        /// <returns></returns>
        List<SysMenu> GetMenusByMenuIdList(List<string> menuId);

        /// <summary>
        /// 根据公司和系统获取数据
        /// </summary>
        /// <param name="corporationKey">公司key</param>
        /// <param name="systemKey">系统key</param>
        /// <returns></returns>
        List<SysMenu> GetMenuByCorporationKeyOrSystemKey(string corporationKey, string systemKey);
    }
}
